package com.zxl.thread;

public class ThreadIm implements Runnable{

	private String name;
	
	public ThreadIm(String name) {
		this.name = name;
	}

	public void run() {
		for (int i = 0; i < 5; i++) {
			System.out.println(name+":"+i);
		}
	}
	
	public static void main(String[] args) {
		new Thread(new ThreadIm("a")).start();
		new Thread(new ThreadIm("b")).start();
	}

}
